package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.request.adverts.BannerPageReq;
import com.rightsidetech.system.dtos.response.adverts.AppBannerResp;
import com.rightsidetech.system.dtos.response.adverts.BannerPageResp;
import com.rightsidetech.system.entity.adverts.SysAdvertsBanner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysAdvertsBannerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysAdvertsBanner record);

    int insertSelective(SysAdvertsBanner record);

    SysAdvertsBanner selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysAdvertsBanner record);

    int updateByPrimaryKey(SysAdvertsBanner record);

    Long selectCountByTopicName(String topicName);

    List<BannerPageResp> selectPageList(BannerPageReq req);
    Integer selectPageList_COUNT(BannerPageReq req);

    List<AppBannerResp> selectAppList(Byte platform);

    List<AppBannerResp> selectAppletsList(List<Long> list);

    SysAdvertsBanner selectByBannerSort();

    int updateSortById(@Param("id") Long id,@Param("bannerSort") Long bannerSort);

    BannerPageResp selectById(Long id);

    List<SysAdvertsBanner> selectByIds(List<Long> list);

    List<BannerPageResp> selectList(BannerPageReq req);
}